<?php if(!IS_AJAX){?>

<include file="Public:header" />
<div class="row">
  <div class="col-sm-7 col-md-8 col-lg-9">
    <section class="panel">
      <div class="panel-body">
        <table class="table-bordered table" width="100%" border="0" cellspacing="0" cellpadding="0">
 <thead>
 <tr>
        <td align="center" style="display:none;">ID</td>
            <td align="center">品牌名称</td>
            <td align="center">品牌LOGO</td>
            

            <td align="center">状态</td>

           
            <td align="center">操作</td>
          </tr>
</thead>
          <tbody class="ajaxdatalist" id="ajaxdatalist">
            <?php }?>
            
            
            
            <?php if(IS_AJAX){?>
            <!-- 数据主体 -->
        <notempty name="list">    
            


 <volist name="list" id="vo">
          <tr class="data_list" id="ajaxdatalist-{$vo.id}">
         <td style="display:none; position:relative;"><div class="BatchOperation BatchOperationBtn td">
                <input class="checkbox" type="checkbox" name="id[]" value="{$vo.id}">
                <i class="fa fa-check td"></i>
                <div class="fabg td"></div>
            </div></td>
         
            <td><span class="ajaxText" tablename="Brand" field="title" id="{$vo.id}" val="{$vo.title}">{$vo.title}</span></td>
            
            <td align="center">
            <notempty name="vo['img_url']"><a class="showcurimg" href="javascript:void(0);"><img src="{:getThumbPath($vo['img_url'])}" style="height:50px;" /><img src="{:getThumbPath($vo['img_url'])}" style="width:200px; position:absolute; margin-top:0px; display:none;" class="img" /></a></notempty>
            
            </td>
            
            
           
           
            <td align="center"><input updateurl="{:U('ajaxUpdate')}" field="status,{$vo.id}" type="checkbox" 
                    <eq name="vo['status']" value="1">checked="checked"</eq>
                    class="js-switch-teal"/></td>
            
           
            <td align="center">
            
            
           
           <a href="##"onClick="_openWindow('{:U('edit',array('id'=>$vo['id']))}', 800, '修改品牌信息', '保存',  function(){ $('#ajaxdatalistform').submit();}, '');">编辑</a> <if condition="getAccessMenu($accessList, 'Admin', 'Brand', 'delete')"> | <a class="deleteBtn" href="javascript:void(0);" rel="{:U('delete',array('id'=>$vo['id']))}" data-id="{$vo.id}">删除</a> </if></td>
          </tr>
        </volist>
<else/>
<tr>
<td colspan="5" align="center">暂无品牌信息</td>
</tr>
</notempty>


            <?php }?>
            <!-- 数据主体结束 -->
            
            <?php if(!IS_AJAX){?>
          </tbody>
        </table>
        <div id="ajaxdatalistpages"></div>
      </div>
    </section>
  </div>
  <div class="col-sm-5 col-md-4 col-lg-3">
    <div class="states-info">
      <div class="panel green-bg">
        <div class="panel-body">
          <div class="row">
            <div class="col-xs-3"> <i class="fa fa-hand-o-right"></i> </div>
            <div class="col-xs-7">
              <h4>添加品牌</h4>
              <span class="state-title"> <a class="text-success" href="##" onClick="_openWindow('<?php echo U('add');?>', 800, '添加品牌', '保存', function(){ $('#ajaxdatalistform').submit();}, '');">点击这里添加品牌</a> </span> </div>
            <div class="col-xs-2"> <span class="fa fa-angle-right"></span> </div>
          </div>
        </div>
      </div>
    </div>
    <div class="panel">
      <header class="panel-heading"> 搜索<a href="##" id="ajaxdatalistbob" class="pull-right">批量操作</a> </header>
      <div class="panel-body"><div class="form-group" id="ajaxdatalistboc" style="display:none;"><a rel="{:U('delete')}" href="##" class="btn btn-danger bdeleteBtn">删除选中</a></div>
        <form id="ajaxdatalistform">
          <div class="input-group m-bot15">
            <input type="text" name="keywords" class="form-control">
            <span class="input-group-btn">
            <button type="button" onClick="$('#ajaxdatalistform').trigger('submit');" class="btn btn-default"><i class="fa fa-search"></i></button>
            </span> </div>
        </form>
       
      </div>
    </div>
  </div>
</div>
<include file="Public:footer" />
<style>
    .option a.btn{margin-top:5px;}
</style>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Js/ueditor/ueditor.config.js"></script> 
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Js/ueditor/ueditor.all.min.js"> </script> 
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Js/ueditor/lang/zh-cn/zh-cn.js"></script>
</body></html><?php }?>

